<?php

if(file_exists(STYLESHEETPATH.'/features/widgets/class.popular.php')){
	require_once(STYLESHEETPATH.'/features/widgets/class.popular.php');
	add_action('widgets_init', create_function('', 'return register_widget("PopularPostsWidget");'));
}

if(file_exists(STYLESHEETPATH.'/features/widgets/class.post.image.php')){
	require_once(STYLESHEETPATH.'/features/widgets/class.post.image.php');
	add_action('widgets_init', create_function('', 'return register_widget("PostImageWidget");'));
}